package com.cloud.poetry.base.feign.fallback.impl;

import cn.hutool.core.util.StrUtil;
import com.cloud.poetry.base.entity.res.SaveFileOutParam;
import com.cloud.poetry.base.feign.FileFeignClient;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author mengxj
 */
@Slf4j
public class FileFeignClientImpl implements FileFeignClient {

    @Setter
    private Throwable throwable;

    @Override
    public SaveFileOutParam saveFile(MultipartFile file) {
        log.error("system feign saveChatLog error! hystrix 降级处理，param {}", file, throwable);
        return new SaveFileOutParam();
    }
}
